<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateBankCardsTable extends Migration
{
    public function up()
    {
        Schema::create('bank_cards', function (Blueprint $table) {
            $table->id();
            $table->string('card_id')->nullable();
            $table->string('card_name')->nullable();
            $table->string('cert_type')->default('id')->comment('id');
            $table->string('cert_number')->nullable();
            $table->string('phone')->nullable();
            
            $table->timestamps();
        });
    }
    
    public function down()
    {
        Schema::dropIfExists('bank_cards');
    }
}
